<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数组的扩展find方法</title>
</head>
<body>
        <script type="text/javascript" >
        	let arr=[1,2,3,4,5,6];

            let result = arr.find(el=>el===5);
            console.log(result);
            let users=[
                {
                id:11,
                name:"ff",
                age:50
            },{
                id:12,
                name:"ff",
                age:50
            },{
                id:13,
                name:"f3333",
                age:50
            },{
                id:14,
                name:"ff",
                age:50
            }
            ]

            let res = users.find(element=>element.id===13);
            console.log(res)
        </script>
</body>
</html>